package com.android.model.purchase;

import com.android.bean.ResponseData;
import com.android.bean.postBean.UserPurchase;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface Purchase_interface {
    @FormUrlEncoded
    @POST("tran/trading")
    @Headers({"appId:b34ac21286ae45938add627b418a4871",
            "appSecret:67526def9de11d4a64f5e80e60ed3372eea69"})
    Observable<ResponseData<String>> sendTrading(@Field("buyerId") Long buyerId,
                                                 @Field("goodsId") Long goodsId,
                                                 @Field("price") Integer price,
                                                 @Field("sellerId") Long sellerId);
}
